package com.social.mobile;

import com.base.mobile.IMError;

public enum MSocialError implements IMError {
	TOPIC_CONTENT_NOEXISTS(9001,"请写些什么"), 
	TOPIC_DEL_NORIGHT(9002,"您无权做此项操作"), 
	TOPIC_NOT_EXISTS(9003,"该帖已删除"), 
	SERVER_INIT_ERROR(9004,"服务端数据库未配置朋友圈主帖"), 
	CANNOT_ADD_SELF(9005,"不能关注自己"), 
	USER_NOT_EXISTS(9006,"用户不存在"), 
	USER_BANNED_POST(9007,"您已被禁言"), 
	LABEL_NOT_EXISTS(9008,"话题不存在,请先创建"), 
	
	DATE_NULL_ERROR(10001,"约会已删除"),
	APPLY_ONLY_ERROR(10002,"您已经报过名"),
	APPLY_SELF_ERROR(10003,"不能报名自己的约会"),
	APPLY_NULL_ERROR(10004,"报名不存在"),
	APPLY_END_ERROR(10005,"报名已处理"),
	
	GROUP_EXIST_ERROR(10006,"群已存在"),
	GROUP_NULL_ERROR(10007,"群不存在"),
	GROUP_OWN_ERROR(10008,"对不起,你不是群主"),
	GROUP_USER_ERROR(10009,"成员已存在"),
	GROUP_OWN_DEL(10010,"群主不能退群"),
	SHATE_NULL_ERROR(10011,"晒一晒主题不存在"),
	SHARE_OUT_ERROR(10012,"晒一晒已过期"),
	
	SHARE_NULL_APPLY(10013,"申请信息不存在"),
	SHARE_DO_APPLY(10014,"申请已处理"),
	
	;
	
	
	/** 错误编码 */
	private int errorCode;

	/** 错误信息 */
	private String errorMsg;
	
	/**
	 * 构造函数
	 */
	private MSocialError(int errorCode, String errorMsg) {
		this.errorCode = errorCode;
		this.errorMsg = errorMsg;
	}

	/**
	 * @return int 错误代码
	 */
	public int getErrorCode() {
		return errorCode;
	}

	/**
	 * @return String 错误信息
	 */
	public String getErrorMsg() {
		return errorMsg;
	}
}
